package jianzhiOffer;

public class num58_2 {
    public String reverseLeftWords(String s, int n) {
        StringBuilder sb1 = new StringBuilder();
        StringBuilder sb2 = new StringBuilder();
        for(int i = 0;i < n;i ++) {
            sb1.append(s.charAt(i));
        }
        for(int i = n;i < s.length();i ++) {
            sb2.append(s.charAt(i));
        }
        sb2.append(sb1.toString());
        return sb2.toString();
    }
}
